package com.shirley.pers.zhufengfmvi.entities;

import org.json.JSONObject;

/**
 * Description: 专辑详情信息中的专辑信息<br/>
 * <p/>
 * Copyright (c) , 2016, Shirley Xian <br/>
 * This program is protected by copyright laws. <br/>
 * ClassName: AlbumsDetailAlbum<br/>
 * Date: 2016/4/8 13:07
 *
 * @author Shirley Xian
 * @version 1.0
 */
public class AlbumsDetailAlbum {

    /**
     * albumId : 203355
     * categoryId : 4
     * categoryName : 娱乐
     * title : 段子来了
     * coverOrigin : http://fdfs.xmcdn.com/group5/M03/A6/D8/wKgDtlR1MD_T1DQHAANqZDyk48s720.jpg
     * coverSmall : http://fdfs.xmcdn.com/group5/M03/A6/D8/wKgDtlR1MD_T1DQHAANqZDyk48s720_mobile_small.jpg
     * coverMiddle : http://fdfs.xmcdn.com/group5/M03/A6/D8/wKgDtlR1MD_T1DQHAANqZDyk48s720_mobile_meduim.jpg
     * coverLarge : http://fdfs.xmcdn.com/group5/M03/A6/D8/wKgDtlR1MD_T1DQHAANqZDyk48s720_mobile_large.jpg
     * coverWebLarge : http://fdfs.xmcdn.com/group5/M03/A6/D8/wKgDtlR1MD_T1DQHAANqZDyk48s720_web_large.jpg
     * createdAt : 1376650745000
     * updatedAt : 1460052069000
     * uid : 2629577
     * nickname : 枕边疯电台
     * isVerified : true
     * avatarPath : http://fdfs.xmcdn.com/group3/M00/64/F8/wKgDslJ68TnQpnVPAAU-A1zGGqI128_mobile_small.jpg
     * intro : 更多请关注微信公众账号： caicaifm
     * introRich : 更多请关注微信公众账号： caicaifm
     * tags : 段子来了,脱口秀,采采,搞笑,笑话
     * tracks : 407
     * shares : 0
     * hasNew : false
     * isFavorite : false
     * playTimes : 268407241
     * status : 1
     * serializeStatus : 0
     * serialState : 0
     * playTrackId : 0
     * isRecordDesc : true
     * isPaid : false
     */

    private long albumId;
    private long categoryId;
    private String categoryName;
    private String title;
    private String coverOrigin;
    private String coverSmall;
    private String coverMiddle;
    private String coverLarge;
    private String coverWebLarge;
    private long createdAt;
    private long updatedAt;
    private long uid;
    private String nickname;
    private boolean isVerified;
    private String avatarPath;
    private String intro;
    private String introRich;
    private String tags;
    private long tracks;
    private long shares;
    private boolean hasNew;
    private boolean isFavorite;
    private long playTimes;
    private long status;
    private long serializeStatus;
    private long serialState;
    private long playTrackId;
    private boolean isRecordDesc;
    private boolean isPaid;

    public void parseJson(JSONObject jsonObject) {
        if (jsonObject != null) {
            albumId = jsonObject.optLong("albumId");
            categoryId = jsonObject.optLong("categoryId");

            categoryName = jsonObject.optString("categoryName");
            title = jsonObject.optString("title");
            coverOrigin = jsonObject.optString("coverOrigin");
            coverSmall = jsonObject.optString("coverSmall");
            coverMiddle = jsonObject.optString("coverMiddle");
            coverLarge = jsonObject.optString("coverLarge");
            coverWebLarge = jsonObject.optString("coverWebLarge");

            createdAt = jsonObject.optLong("createdAt");
            updatedAt = jsonObject.optLong("updatedAt");
            uid = jsonObject.optLong("uid");

            nickname = jsonObject.optString("nickname");

            isVerified = jsonObject.optBoolean("isVerified");

            avatarPath = jsonObject.optString("avatarPath");
            intro = jsonObject.optString("intro");
            introRich = jsonObject.optString("introRich");
            tags = jsonObject.optString("tags");

            tracks = jsonObject.optLong("tracks");
            shares = jsonObject.optLong("shares");

            hasNew = jsonObject.optBoolean("hasNew");
            isFavorite = jsonObject.optBoolean("isFavorite");

            playTimes = jsonObject.optLong("playTimes");
            status = jsonObject.optLong("status");
            serializeStatus = jsonObject.optLong("serializeStatus");
            serialState = jsonObject.optLong("serialState");
            playTrackId = jsonObject.optLong("playTrackId");

            isRecordDesc = jsonObject.optBoolean("isRecordDesc");
            isPaid = jsonObject.optBoolean("isPaid");
        }
    }

    public long getAlbumId() {
        return albumId;
    }

    public long getCategoryId() {
        return categoryId;
    }

    public String getCategoryName() {
        return categoryName;
    }

    public String getTitle() {
        return title;
    }

    public String getCoverOrigin() {
        return coverOrigin;
    }

    public String getCoverSmall() {
        return coverSmall;
    }

    public String getCoverMiddle() {
        return coverMiddle;
    }

    public String getCoverLarge() {
        return coverLarge;
    }

    public String getCoverWebLarge() {
        return coverWebLarge;
    }

    public long getCreatedAt() {
        return createdAt;
    }

    public long getUpdatedAt() {
        return updatedAt;
    }

    public long getUid() {
        return uid;
    }

    public String getNickname() {
        return nickname;
    }

    public boolean isVerified() {
        return isVerified;
    }

    public String getAvatarPath() {
        return avatarPath;
    }

    public String getIntro() {
        return intro;
    }

    public String getIntroRich() {
        return introRich;
    }

    public String getTags() {
        return tags;
    }

    public long getTracks() {
        return tracks;
    }

    public long getShares() {
        return shares;
    }

    public boolean isHasNew() {
        return hasNew;
    }

    public boolean isFavorite() {
        return isFavorite;
    }

    public long getPlayTimes() {
        return playTimes;
    }

    public long getStatus() {
        return status;
    }

    public long getSerializeStatus() {
        return serializeStatus;
    }

    public long getSerialState() {
        return serialState;
    }

    public long getPlayTrackId() {
        return playTrackId;
    }

    public boolean isRecordDesc() {
        return isRecordDesc;
    }

    public boolean isPaid() {
        return isPaid;
    }
}
